<template>
	<view class="success"  v-if="isSuccess">
		<!-- 遮罩 -->
		<template>
			<view class="mask"></view>
			<view class="success_content pa">
				<image :src="share_success" mode=""></image>
				<view class="success_text pa" @tap="close">知道了</view>
			</view>
		</template>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				share_success: this.imgUrl + 'share_success.png',
				isSuccess: false
			}
		},
		methods: {
			close() {
				this.$Router.replace({
					path: '/pages/home_index/home_index'
				})
				this.isSuccess = false;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.success {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		justify-content: center;
		align-items: center;
		.mask {
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			z-index: 997;
			background-color: rgba($color: #000000, $alpha: 0.7);
		}
		.success_content {
			top: 180rpx;
			z-index: 999;
			image {
				width: 490rpx;
				height: 644rpx;
				z-index: 997;
				text-align: center;
			}
			.success_text {
				font-size: 24rpx;
				color: #A87D3F;
				z-index:  999;
				top: 510rpx;
				left: 46rpx;
				padding: 24rpx 160rpx 28rpx;
				background: linear-gradient(#F7E7CE,#ECC081);
				border-radius: 38rpx;
				box-shadow: 0 10rpx #DCAF6D;
			}
		}
	}
</style>
